
package com.doc2video.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 文档上传DTO
 */
@Data
@ApiModel(value = "文档上传DTO")
public class DocumentUploadDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文档文件", required = true)
    @NotNull(message = "文档文件不能为空")
    private MultipartFile file;

    @ApiModelProperty(value = "文档描述")
    private String description;
}
